<?php
$conn=mysql_connect("42.112.19.94","ktpmknet_android","12312") or die("khong ket noi duoc");
mysql_select_db("ktpmknet_android");
$res=$_GET['res'];
$control=$_POST['control'];
  
if($res!='')$control=$res;
$id=substr($control,7,strlen($control)-7);
if($id=='')$id='naqnaq';
//mysql_query("truncate table1");
mysql_query("DELETE FROM `table1` WHERE control like '%$id'");
$query2=mysql_query("INSERT INTO `table1`(`control`) VALUES ('$control')"); 
echo "$id";
?>
